<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddArrivalStatusToBasicNewArrivalsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('basic_new_arrivals', function (Blueprint $table) {
            //
            $table->tinyinteger('arrival_status')->nullable()->default(0)->comment('学期的状态值 0:未开始;1:已开始;2:已结束');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('basic_new_arrivals', function (Blueprint $table) {
            //
            $table->dropColumn('arrival_status');
        });
    }
}
